Skip to content

feat(dotAI): Dot AI LangChain4J - Azure OpenAI#35243

Draft
ihoffmann-dot wants to merge 91 commits intomainfrom
dot-ai-langchain-azure-openai
Draft

feat(dotAI): Dot AI LangChain4J - Azure OpenAI#35243
ihoffmann-dot wants to merge 91 commits intomainfrom
dot-ai-langchain-azure-openai

Conversation

@ihoffmann-dot
Copy link
Copy Markdown
Member

Summary

Adds Azure OpenAI as a supported provider in the LangChain4J integration layer.
Enterprise customers using Azure-hosted OpenAI deployments can now configure
dotAI without any code changes — only a providerConfig JSON update is required.

  • Add langchain4j-azure-open-ai dependency
  • Add azure_openai case to LangChain4jModelFactory switch
  • Implement buildAzureOpenAiChatModel, buildAzureOpenAiEmbeddingModel, buildAzureOpenAiImageModel
  • Pin Netty (4.1.118.Final) and Reactor (3.4.41) in BOM to resolve transitive version conflicts introduced by Azure SDK
  • Add 3 unit tests in LangChain4jModelFactoryTest

Configuration

{
  "chat": {
    "provider": "azure_openai",
    "apiKey": "...",
    "endpoint": "https://my-company.openai.azure.com/",
    "deploymentName": "gpt-4o",
    "apiVersion": "2024-02-01",
    "maxTokens": 16384,
    "temperature": 1.0
  },
  "embeddings": {
    "provider": "azure_openai",
    "apiKey": "...",
    "endpoint": "https://my-company.openai.azure.com/",
    "deploymentName": "text-embedding-ada-002",
    "apiVersion": "2024-02-01"
  },
  "image": {
    "provider": "azure_openai",
    "apiKey": "...",
    "endpoint": "https://my-company.openai.azure.com/",
    "deploymentName": "dall-e-3",
    "apiVersion": "2024-02-01"
  }
}

Notes

  • deploymentName is required for Azure (differs from model name). Falls back to model if not set.
  • apiVersion maps to Azure's serviceVersion. Recommended: 2024-02-01.
  • Netty/Reactor version pins are required for Azure SDK compatibility and do not affect existing behavior.

Related Issue

This PR fixes #35183
EPIC: dotAI Multi-Provider Support #33970

ihoffmann-dot and others added 24 commits April 15, 2026 15:56
…s to avoid parse errors in non-streaming requests
…ns param, replace sha256Hex with DigestUtils
@dotCMS dotCMS deleted a comment from github-actions Bot Apr 20, 2026
Base automatically changed from dot-ai-langchain-integration to main April 20, 2026 21:22
@github-actions github-actions Bot added the Area : Backend PR changes Java/Maven backend code label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI: Safe To Rollback Area : Backend PR changes Java/Maven backend code

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[FEATURE] dotAI: LangChain4J integration — Phase 1 (OpenAI)

2 participants